package com.fengze.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fengze.common.annotation.Excel;
import com.fengze.common.core.domain.BaseEntity;

/**
 * 履约记录对象 fz_performance_record
 * 
 * @author lug
 * @date 2024-02-04
 */
public class PerformanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 履约计划id */
    @Excel(name = "履约计划id")
    private Long performancePlanId;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long userId;

    /** 创建部门id */
    @Excel(name = "创建部门id")
    private Long deptId;

    /** 金额 */
    @Excel(name = "金额")
    private String amountMoney;

    /** 收款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    /** 收款金额 */
    @Excel(name = "收款金额")
    private BigDecimal collectionMoney;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    private Long contractId;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public void setPerformancePlanId(Long performancePlanId)
    {
        this.performancePlanId = performancePlanId;
    }

    public Long getPerformancePlanId() 
    {
        return performancePlanId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAmountMoney(String amountMoney) 
    {
        this.amountMoney = amountMoney;
    }

    public String getAmountMoney() 
    {
        return amountMoney;
    }
    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }
    public void setCollectionMoney(BigDecimal collectionMoney) 
    {
        this.collectionMoney = collectionMoney;
    }

    public BigDecimal getCollectionMoney() 
    {
        return collectionMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("performancePlanId", getPerformancePlanId())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("amountMoney", getAmountMoney())
            .append("collectionTime", getCollectionTime())
            .append("collectionMoney", getCollectionMoney())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
